package org.example.rowing.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.example.rowing.domain.Athlete;
import org.example.rowing.vo.AthleteVO;

import java.util.List;

@Mapper
public interface AthleteMapper {
    List<Athlete> selectAllAthletes();

    List<Athlete> selectAthleteByConditions(Athlete event);

    Boolean insertAthlete(Athlete event);

    Boolean updateAthlete(Athlete event);

    Boolean deleteAthlete(Long id);

    Boolean deleteAthletesByTeamId(Long id);

    Boolean insertAthletes(List<Athlete> athleteList);

    List<AthleteVO> selectAthleteVOByCondition(AthleteVO athleteVO);
}
